package no.cicero.testframework.execution;

import no.cicero.testframework.config.Config;
import no.cicero.testframework.execution.exceptions.TestFailedRuntimeException;
import no.cicero.testframework.model.testcase.Step;
import no.cicero.testframework.model.testcase.TestCase;

/**
 * Author: Sergiy Doroshenko
 * Date: Jun 15, 2010
 * Time: 4:04:18 PM
 */
public class TestCaseRunnerWithOutReport extends TestCaseRunner {
    public TestCaseRunnerWithOutReport(TestCase testCase, Config configuration) {
        super(testCase, configuration, null);
    }

    @Override
    public void run() {
        for (Step step : testCase.getSteps()) {
            try {
                run(step);
                //StepSucceeded
            } catch (Exception ex) {
                //step failed
                throw new TestFailedRuntimeException(ex);
            }
        }
    }
}
